<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>食光集 - 成就详情</title>
    <!-- Tailwind CSS CDN -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <!-- 自定义配置 -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#FF9AA2', // 可爱粉色
                        secondary: '#FFB7B2', // 浅粉色
                        accent: '#FFDAC1', // 橙色
                        light: '#E2F0CB', // 浅绿色
                        dark: '#B5EAD7', // 深绿色
                    },
                    fontFamily: {
                        sans: ['PingFang SC', 'Helvetica Neue', 'Arial', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <style>
        /* 自定义样式 */
        .glass-effect {
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            border: 1px solid rgba(255, 255, 255, 0.18);
        }
        .nav-tab {
            position: relative;
            transition: all 0.3s ease;
        }
        .nav-tab.active {
            color: #FF9AA2;
        }
        .nav-tab.active::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 3px;
            background-color: #FF9AA2;
            border-radius: 3px;
        }
        .achievement-rule {
            background: white;
            border-radius: 1rem;
            padding: 1rem;
            margin-bottom: 0.5rem;
            transition: all 0.3s ease;
            border: 1px solid rgba(0,0,0,0.1);
        }
        .achievement-rule:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
        }
        .achievement-rule.active {
            border: 2px solid #FF9AA2;
            background: #FFF5F6;
        }
    </style>
</head>
<body class="bg-gradient-to-b from-pink-50 to-white">
    <!-- 顶部导航栏 -->
    <nav class="fixed top-0 left-0 right-0 bg-white/80 backdrop-blur-md shadow-sm z-50">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <a href="profile.html" class="text-gray-600">
                <i class="fas fa-arrow-left"></i>
            </a>
            <h1 class="text-xl font-bold text-gray-800">成就详情</h1>
            <div class="w-6"></div>
        </div>
    </nav>

    <!-- 内容区域 -->
    <div class="container mx-auto px-4 pt-20 pb-24">
        <!-- 当前等级 -->
        <div class="bg-white rounded-2xl shadow-sm p-6 mb-6">
            <h2 class="text-xl font-bold text-gray-800 mb-4">当前等级</h2>
            <div class="flex items-center">
                <div class="w-20 h-20 rounded-full bg-red-100 flex items-center justify-center mr-4">
                    <i class="fas fa-utensils text-red-500 text-3xl"></i>
                </div>
                <div>
                    <h3 class="text-lg font-bold text-gray-800">烹饪新手</h3>
                    <p class="text-gray-600">已完成 2/3 道菜</p>
                    <div class="w-full bg-gray-200 rounded-full h-2 mt-2">
                        <div class="bg-red-500 h-2 rounded-full" style="width: 66%"></div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 烹饪等级 -->
        <div class="bg-white rounded-2xl shadow-sm p-6 mb-6">
            <h2 class="text-xl font-bold text-gray-800 mb-4">烹饪等级</h2>
            <div class="grid grid-cols-4 gap-4">
                <div class="flex flex-col items-center">
                    <div class="w-12 h-12 rounded-full bg-red-100 flex items-center justify-center mb-2">
                        <i class="fas fa-utensils text-red-500 text-lg"></i>
                    </div>
                    <span class="text-sm text-gray-600">烹饪新手</span>
                    <span class="text-xs text-gray-400">2/3</span>
                </div>
                <div class="flex flex-col items-center">
                    <div class="w-12 h-12 rounded-full bg-orange-100 flex items-center justify-center mb-2">
                        <i class="fas fa-fire text-orange-500 text-lg"></i>
                    </div>
                    <span class="text-sm text-gray-600">初级厨师</span>
                    <span class="text-xs text-gray-400">0/5</span>
                </div>
                <div class="flex flex-col items-center">
                    <div class="w-12 h-12 rounded-full bg-yellow-100 flex items-center justify-center mb-2">
                        <i class="fas fa-star text-yellow-500 text-lg"></i>
                    </div>
                    <span class="text-sm text-gray-600">烹饪达人</span>
                    <span class="text-xs text-gray-400">0/10</span>
                </div>
                <div class="flex flex-col items-center">
                    <div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center mb-2">
                        <i class="fas fa-award text-green-500 text-lg"></i>
                    </div>
                    <span class="text-sm text-gray-600">高级厨师</span>
                    <span class="text-xs text-gray-400">0/15</span>
                </div>
                <div class="flex flex-col items-center">
                    <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center mb-2">
                        <i class="fas fa-crown text-blue-500 text-lg"></i>
                    </div>
                    <span class="text-sm text-gray-600">烹饪大师</span>
                    <span class="text-xs text-gray-400">0/20</span>
                </div>
                <div class="flex flex-col items-center">
                    <div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center mb-2">
                        <i class="fas fa-trophy text-indigo-500 text-lg"></i>
                    </div>
                    <span class="text-sm text-gray-600">米其林</span>
                    <span class="text-xs text-gray-400">0/25</span>
                </div>
                <div class="flex flex-col items-center">
                    <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mb-2">
                        <i class="fas fa-book text-purple-500 text-lg"></i>
                    </div>
                    <span class="text-sm text-gray-600">食谱作者</span>
                    <span class="text-xs text-gray-400">0/30</span>
                </div>
                <div class="flex flex-col items-center">
                    <div class="w-12 h-12 rounded-full bg-pink-100 flex items-center justify-center mb-2">
                        <i class="fas fa-crown text-pink-500 text-lg"></i>
                    </div>
                    <span class="text-sm text-gray-600">食神</span>
                    <span class="text-xs text-gray-400">0/35</span>
                </div>
            </div>
        </div>

        <!-- 成就规则 -->
        <div class="bg-white rounded-2xl shadow-sm p-6">
            <h2 class="text-xl font-bold text-gray-800 mb-4">成就规则</h2>
            <div class="space-y-4">
                <div class="achievement-rule active">
                    <div class="flex items-center">
                        <div class="w-12 h-12 rounded-full bg-red-100 flex items-center justify-center mr-4">
                            <i class="fas fa-utensils text-red-500 text-lg"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="text-lg font-bold text-gray-800">烹饪新手</h3>
                            <p class="text-gray-600 text-sm">完成3道菜或获得10个点赞</p>
                        </div>
                        <div class="w-16 h-16 rounded-full bg-red-50 flex items-center justify-center">
                            <i class="fas fa-medal text-red-500 text-2xl"></i>
                        </div>
                    </div>
                    <div class="mt-3 flex items-center justify-between">
                        <div class="flex items-center">
                            <i class="fas fa-check-circle text-green-500 mr-2"></i>
                            <span class="text-sm text-gray-600">已完成 2/3 道菜</span>
                        </div>
                        <div class="w-24 bg-gray-200 rounded-full h-2">
                            <div class="bg-red-500 h-2 rounded-full" style="width: 66%"></div>
                        </div>
                    </div>
                </div>

                <div class="achievement-rule">
                    <div class="flex items-center">
                        <div class="w-12 h-12 rounded-full bg-orange-100 flex items-center justify-center mr-4">
                            <i class="fas fa-fire text-orange-500 text-lg"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="text-lg font-bold text-gray-800">初级厨师</h3>
                            <p class="text-gray-600 text-sm">完成5道菜且获得30个点赞</p>
                        </div>
                        <div class="w-16 h-16 rounded-full bg-orange-50 flex items-center justify-center">
                            <i class="fas fa-medal text-orange-500 text-2xl"></i>
                        </div>
                    </div>
                    <div class="mt-3 flex items-center justify-between">
                        <div class="flex items-center">
                            <i class="fas fa-lock text-gray-400 mr-2"></i>
                            <span class="text-sm text-gray-600">未解锁</span>
                        </div>
                        <div class="w-24 bg-gray-200 rounded-full h-2">
                            <div class="bg-orange-500 h-2 rounded-full" style="width: 0%"></div>
                        </div>
                    </div>
                </div>

                <div class="achievement-rule">
                    <div class="flex items-center">
                        <div class="w-12 h-12 rounded-full bg-yellow-100 flex items-center justify-center mr-4">
                            <i class="fas fa-star text-yellow-500 text-lg"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="text-lg font-bold text-gray-800">烹饪达人</h3>
                            <p class="text-gray-600 text-sm">完成10道菜且获得100个点赞</p>
                        </div>
                        <div class="w-16 h-16 rounded-full bg-yellow-50 flex items-center justify-center">
                            <i class="fas fa-medal text-yellow-500 text-2xl"></i>
                        </div>
                    </div>
                    <div class="mt-3 flex items-center justify-between">
                        <div class="flex items-center">
                            <i class="fas fa-lock text-gray-400 mr-2"></i>
                            <span class="text-sm text-gray-600">未解锁</span>
                        </div>
                        <div class="w-24 bg-gray-200 rounded-full h-2">
                            <div class="bg-yellow-500 h-2 rounded-full" style="width: 0%"></div>
                        </div>
                    </div>
                </div>

                <div class="achievement-rule">
                    <div class="flex items-center">
                        <div class="w-12 h-12 rounded-full bg-green-100 flex items-center justify-center mr-4">
                            <i class="fas fa-award text-green-500 text-lg"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="text-lg font-bold text-gray-800">高级厨师</h3>
                            <p class="text-gray-600 text-sm">完成15道菜且获得300个点赞</p>
                        </div>
                        <div class="w-16 h-16 rounded-full bg-green-50 flex items-center justify-center">
                            <i class="fas fa-medal text-green-500 text-2xl"></i>
                        </div>
                    </div>
                    <div class="mt-3 flex items-center justify-between">
                        <div class="flex items-center">
                            <i class="fas fa-lock text-gray-400 mr-2"></i>
                            <span class="text-sm text-gray-600">未解锁</span>
                        </div>
                        <div class="w-24 bg-gray-200 rounded-full h-2">
                            <div class="bg-green-500 h-2 rounded-full" style="width: 0%"></div>
                        </div>
                    </div>
                </div>

                <div class="achievement-rule">
                    <div class="flex items-center">
                        <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center mr-4">
                            <i class="fas fa-crown text-blue-500 text-lg"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="text-lg font-bold text-gray-800">烹饪大师</h3>
                            <p class="text-gray-600 text-sm">完成20道菜且获得500个点赞</p>
                        </div>
                        <div class="w-16 h-16 rounded-full bg-blue-50 flex items-center justify-center">
                            <i class="fas fa-medal text-blue-500 text-2xl"></i>
                        </div>
                    </div>
                    <div class="mt-3 flex items-center justify-between">
                        <div class="flex items-center">
                            <i class="fas fa-lock text-gray-400 mr-2"></i>
                            <span class="text-sm text-gray-600">未解锁</span>
                        </div>
                        <div class="w-24 bg-gray-200 rounded-full h-2">
                            <div class="bg-blue-500 h-2 rounded-full" style="width: 0%"></div>
                        </div>
                    </div>
                </div>

                <div class="achievement-rule">
                    <div class="flex items-center">
                        <div class="w-12 h-12 rounded-full bg-indigo-100 flex items-center justify-center mr-4">
                            <i class="fas fa-trophy text-indigo-500 text-lg"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="text-lg font-bold text-gray-800">米其林</h3>
                            <p class="text-gray-600 text-sm">完成25道菜且获得1000个点赞</p>
                        </div>
                        <div class="w-16 h-16 rounded-full bg-indigo-50 flex items-center justify-center">
                            <i class="fas fa-medal text-indigo-500 text-2xl"></i>
                        </div>
                    </div>
                    <div class="mt-3 flex items-center justify-between">
                        <div class="flex items-center">
                            <i class="fas fa-lock text-gray-400 mr-2"></i>
                            <span class="text-sm text-gray-600">未解锁</span>
                        </div>
                        <div class="w-24 bg-gray-200 rounded-full h-2">
                            <div class="bg-indigo-500 h-2 rounded-full" style="width: 0%"></div>
                        </div>
                    </div>
                </div>

                <div class="achievement-rule">
                    <div class="flex items-center">
                        <div class="w-12 h-12 rounded-full bg-purple-100 flex items-center justify-center mr-4">
                            <i class="fas fa-book text-purple-500 text-lg"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="text-lg font-bold text-gray-800">食谱作者</h3>
                            <p class="text-gray-600 text-sm">完成30道菜且获得2000个点赞</p>
                        </div>
                        <div class="w-16 h-16 rounded-full bg-purple-50 flex items-center justify-center">
                            <i class="fas fa-medal text-purple-500 text-2xl"></i>
                        </div>
                    </div>
                    <div class="mt-3 flex items-center justify-between">
                        <div class="flex items-center">
                            <i class="fas fa-lock text-gray-400 mr-2"></i>
                            <span class="text-sm text-gray-600">未解锁</span>
                        </div>
                        <div class="w-24 bg-gray-200 rounded-full h-2">
                            <div class="bg-purple-500 h-2 rounded-full" style="width: 0%"></div>
                        </div>
                    </div>
                </div>

                <div class="achievement-rule">
                    <div class="flex items-center">
                        <div class="w-12 h-12 rounded-full bg-pink-100 flex items-center justify-center mr-4">
                            <i class="fas fa-crown text-pink-500 text-lg"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="text-lg font-bold text-gray-800">食神</h3>
                            <p class="text-gray-600 text-sm">完成35道菜且获得5000个点赞</p>
                        </div>
                        <div class="w-16 h-16 rounded-full bg-pink-50 flex items-center justify-center">
                            <i class="fas fa-medal text-pink-500 text-2xl"></i>
                        </div>
                    </div>
                    <div class="mt-3 flex items-center justify-between">
                        <div class="flex items-center">
                            <i class="fas fa-lock text-gray-400 mr-2"></i>
                            <span class="text-sm text-gray-600">未解锁</span>
                        </div>
                        <div class="w-24 bg-gray-200 rounded-full h-2">
                            <div class="bg-pink-500 h-2 rounded-full" style="width: 0%"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 底部导航栏 -->
    <div class="fixed bottom-0 left-0 right-0 bg-white/80 backdrop-blur-md py-2 px-4 flex justify-around items-center shadow-sm">
        <a href="index.html" class="nav-tab flex flex-col items-center text-gray-600">
            <i class="fas fa-home text-xl"></i>
            <span class="text-xs mt-1">首页</span>
        </a>
        <a href="discover.html" class="nav-tab flex flex-col items-center text-gray-600">
            <i class="fas fa-compass text-xl"></i>
            <span class="text-xs mt-1">发现</span>
        </a>
        <a href="menu.html" class="nav-tab flex flex-col items-center text-gray-600">
            <i class="fas fa-list text-xl"></i>
            <span class="text-xs mt-1">菜单</span>
        </a>
        <a href="profile.html" class="nav-tab active flex flex-col items-center text-primary">
            <i class="fas fa-user text-xl"></i>
            <span class="text-xs mt-1">我的</span>
        </a>
    </div>
</body>
</html> 